<template>
  <a-table :columns="columns"
           :row-key="record => record.id"
           :data-source="dataSource"
  />
</template>
<script>

  import {getAction, downFile} from '@/api/manage'

  export default {


    components: {
      getAction
    },

    data() {
      return {
        dataSource: [
          {
            purchaseNumber: '',
            purchase_date: '',
            supplier_name: 32,
            amount_paid: '',
            user_name: 'aaa',
            state: '',
            remarks: ''
          },

        ],

        columns: [
          {
            title: '单号',
            dataIndex: 'purchaseNumber',
            key: 'purchaseNumber',
          },
          {
            title: '日期',
            dataIndex: 'purchaseDate',
            key: 'purchaseDate',
          },
          {
            title: '类型',
            dataIndex: 'purchaseDate',
            key: 'purchaseDate',
          },
          {
            title: '操作员',
            dataIndex: 'purchaseDate',
            key: 'purchaseDate',
          },
          {
            title: '备注',
            dataIndex: 'purchaseDate',
            key: 'purchaseDate',
          },

        ],
        purchaseList: [],
        url: {
          list: "/damageListGoods/list"
        },
        searchList: []
      };
    },
    computed: {},
    watch: {},
    mounted() {

    },
    destroyed() {
    },
    created() {
      // getAction(this.url.list, this.searchList).then((res) => {
      //   console.log(res)
      //   this.dataSource = res;
      // })


    },
    methods: {}
  };
</script>
<style lang="scss">
</style>